import { Router } from "express";
import authRoutes from "./auth.routes";
import captchaRoutes from "./captcha.routes";
import menuController from "@/controllers/system/menu.controller";
import { authMiddleware } from "@/middlewares/auth.middleware";


const router = Router();

// ================== 认证相关 ==================

router.use("/", authRoutes);

// ================== 验证码相关 ==================

router.use("/captchaImage", captchaRoutes);

// 获取路由
router.get('/getRouters', authMiddleware, menuController.getRouters);



export default router;
